package com.app.game.bet.numeric;

public class BetSplit extends BetNumeric{
	public static enum Type {HORIZONTAL,VERTICAL};
	private Type type;
	private int initialNumber;
	public BetSplit(Type type, int initialNumber){
		this.type = type;
		this.initialNumber = initialNumber;
		setRating(17);
		
	}
	@Override
	protected boolean isWin(int result) {
		if(type == Type.HORIZONTAL && (result == initialNumber || result == initialNumber+1) ){
			return true;
		}
		if(type == Type.VERTICAL && (result == initialNumber || result == initialNumber+3)){
			return true;
		}
		return false;
	}
}
